class Breeder:
    def __init__(self, name):
        self.name = name

    def feed(self):
        return f"{self.name}喂养"

    def run(self):
        return f"{self.name}会走路"

    def __str__(self):
        return f"饲养员名字{self.name}"


class Animal:
    def __init__(self, name):
        self.name = name

    def eat(self):
        b = Breeder("张三")
        br = b.feed()
        f = Food("草")
        fr = f.name
        return f"{br}{self.name}给它吃{fr}"

    def __str__(self):
        return f"动物名字{self.name}"


class Food:
    def __init__(self, name):
        self.name = name

    def __str__(self):
        return f"食物名字{self.name}"


def main():
    a = Animal("牛")
    ar = a.eat()
    print(ar)


main()
